home *** CD-ROM | disk | FTP | other *** search
-
- //------------------------------------------------------------------->
- //
- // wall.inc
- //
- // "Easy POV Oven"
- //
- // Written By: Paul T. Dawson
- // ptdawson@voicenet.com
- // http://www.voicenet.com/~ptdawson
- //
- // All code and techniques are PUBLIC DOMAIN - have fun with it!
- //
- //------------------------------------------------------------------->
- //
- // This file builds the "Wall_Tile" object.
- //
- // This file is a little messy, with a lot of #declares and bunches of
- // #if-#end blocks, sorry about that!!! 8-)
- //
- //------------------------------------------------------------------->
- //
- // Make the textures.
-
- // Basic box.
- #declare Tex_A = texture { T_Silver_5C }
-
- // Border pieces.
- #declare Tex_B = texture { pigment { SteelBlue } }
-
- // Blue to purple.
- #declare Tex_001 = texture { pigment { color rgb < 0.0, 0.0, 1.0 > } }
- #declare Tex_002 = texture { pigment { color rgb < 0.1, 0.0, 1.0 > } }
- #declare Tex_003 = texture { pigment { color rgb < 0.2, 0.0, 1.0 > } }
- #declare Tex_004 = texture { pigment { color rgb < 0.3, 0.0, 1.0 > } }
- #declare Tex_005 = texture { pigment { color rgb < 0.4, 0.0, 1.0 > } }
- #declare Tex_006 = texture { pigment { color rgb < 0.5, 0.0, 1.0 > } }
- #declare Tex_007 = texture { pigment { color rgb < 0.6, 0.0, 1.0 > } }
- #declare Tex_008 = texture { pigment { color rgb < 0.7, 0.0, 1.0 > } }
- #declare Tex_009 = texture { pigment { color rgb < 0.8, 0.0, 1.0 > } }
- #declare Tex_010 = texture { pigment { color rgb < 0.9, 0.0, 1.0 > } }
- #declare Tex_011 = texture { pigment { color rgb < 1.0, 0.0, 1.0 > } }
-
- // Cyan to blue.
- #declare Tex_101 = texture { pigment { color rgb < 0.0, 1.0, 1.0 > } }
- #declare Tex_102 = texture { pigment { color rgb < 0.0, 0.9, 1.0 > } }
- #declare Tex_103 = texture { pigment { color rgb < 0.0, 0.8, 1.0 > } }
- #declare Tex_104 = texture { pigment { color rgb < 0.0, 0.7, 1.0 > } }
- #declare Tex_105 = texture { pigment { color rgb < 0.0, 0.6, 1.0 > } }
- #declare Tex_106 = texture { pigment { color rgb < 0.0, 0.5, 1.0 > } }
- #declare Tex_107 = texture { pigment { color rgb < 0.0, 0.4, 1.0 > } }
- #declare Tex_108 = texture { pigment { color rgb < 0.0, 0.3, 1.0 > } }
- #declare Tex_109 = texture { pigment { color rgb < 0.0, 0.2, 1.0 > } }
- #declare Tex_110 = texture { pigment { color rgb < 0.0, 0.1, 1.0 > } }
- #declare Tex_111 = texture { pigment { color rgb < 0.0, 0.0, 1.0 > } }
-
- // Yellow to green.
- #declare Tex_201 = texture { pigment { color rgb < 1.0, 1.0, 0.0 > } }
- #declare Tex_202 = texture { pigment { color rgb < 0.9, 1.0, 0.0 > } }
- #declare Tex_203 = texture { pigment { color rgb < 0.8, 1.0, 0.0 > } }
- #declare Tex_204 = texture { pigment { color rgb < 0.7, 1.0, 0.0 > } }
- #declare Tex_205 = texture { pigment { color rgb < 0.6, 1.0, 0.0 > } }
- #declare Tex_206 = texture { pigment { color rgb < 0.5, 1.0, 0.0 > } }
- #declare Tex_207 = texture { pigment { color rgb < 0.4, 1.0, 0.0 > } }
- #declare Tex_208 = texture { pigment { color rgb < 0.3, 1.0, 0.0 > } }
- #declare Tex_209 = texture { pigment { color rgb < 0.2, 1.0, 0.0 > } }
- #declare Tex_210 = texture { pigment { color rgb < 0.1, 1.0, 0.0 > } }
- #declare Tex_211 = texture { pigment { color rgb < 0.0, 1.0, 0.0 > } }
-
- // Red to yellow.
- #declare Tex_301 = texture { pigment { color rgb < 1.0, 0.0, 0.0 > } }
- #declare Tex_302 = texture { pigment { color rgb < 1.0, 0.1, 0.0 > } }
- #declare Tex_303 = texture { pigment { color rgb < 1.0, 0.2, 0.0 > } }
- #declare Tex_304 = texture { pigment { color rgb < 1.0, 0.3, 0.0 > } }
- #declare Tex_305 = texture { pigment { color rgb < 1.0, 0.4, 0.0 > } }
- #declare Tex_306 = texture { pigment { color rgb < 1.0, 0.5, 0.0 > } }
- #declare Tex_307 = texture { pigment { color rgb < 1.0, 0.6, 0.0 > } }
- #declare Tex_308 = texture { pigment { color rgb < 1.0, 0.7, 0.0 > } }
- #declare Tex_309 = texture { pigment { color rgb < 1.0, 0.8, 0.0 > } }
- #declare Tex_310 = texture { pigment { color rgb < 1.0, 0.9, 0.0 > } }
- #declare Tex_311 = texture { pigment { color rgb < 1.0, 1.0, 0.0 > } }
-
- // Red to purple.
- #declare Tex_401 = texture { pigment { color rgb < 1.0, 0.0, 0.0 > } }
- #declare Tex_402 = texture { pigment { color rgb < 1.0, 0.0, 0.1 > } }
- #declare Tex_403 = texture { pigment { color rgb < 1.0, 0.0, 0.2 > } }
- #declare Tex_404 = texture { pigment { color rgb < 1.0, 0.0, 0.3 > } }
- #declare Tex_405 = texture { pigment { color rgb < 1.0, 0.0, 0.4 > } }
- #declare Tex_406 = texture { pigment { color rgb < 1.0, 0.0, 0.5 > } }
- #declare Tex_407 = texture { pigment { color rgb < 1.0, 0.0, 0.6 > } }
- #declare Tex_408 = texture { pigment { color rgb < 1.0, 0.0, 0.7 > } }
- #declare Tex_409 = texture { pigment { color rgb < 1.0, 0.0, 0.8 > } }
- #declare Tex_410 = texture { pigment { color rgb < 1.0, 0.0, 0.9 > } }
- #declare Tex_411 = texture { pigment { color rgb < 1.0, 0.0, 1.0 > } }
-
- // Green to cyan.
- #declare Tex_501 = texture { pigment { color rgb < 0.0, 1.0, 0.0 > } }
- #declare Tex_502 = texture { pigment { color rgb < 0.0, 1.0, 0.1 > } }
- #declare Tex_503 = texture { pigment { color rgb < 0.0, 1.0, 0.2 > } }
- #declare Tex_504 = texture { pigment { color rgb < 0.0, 1.0, 0.3 > } }
- #declare Tex_505 = texture { pigment { color rgb < 0.0, 1.0, 0.4 > } }
- #declare Tex_506 = texture { pigment { color rgb < 0.0, 1.0, 0.5 > } }
- #declare Tex_507 = texture { pigment { color rgb < 0.0, 1.0, 0.6 > } }
- #declare Tex_508 = texture { pigment { color rgb < 0.0, 1.0, 0.7 > } }
- #declare Tex_509 = texture { pigment { color rgb < 0.0, 1.0, 0.8 > } }
- #declare Tex_510 = texture { pigment { color rgb < 0.0, 1.0, 0.9 > } }
- #declare Tex_511 = texture { pigment { color rgb < 0.0, 1.0, 1.0 > } }
-
-
- // Purple to yellow.
- #declare Tex_601 = texture { pigment { color rgb < 1.0, 0.0, 1.0 > } }
- #declare Tex_602 = texture { pigment { color rgb < 1.0, 0.1, 0.9 > } }
- #declare Tex_603 = texture { pigment { color rgb < 1.0, 0.2, 0.8 > } }
- #declare Tex_604 = texture { pigment { color rgb < 1.0, 0.3, 0.7 > } }
- #declare Tex_605 = texture { pigment { color rgb < 1.0, 0.4, 0.6 > } }
- #declare Tex_606 = texture { pigment { color rgb < 1.0, 0.5, 0.5 > } }
- #declare Tex_607 = texture { pigment { color rgb < 1.0, 0.6, 0.4 > } }
- #declare Tex_608 = texture { pigment { color rgb < 1.0, 0.7, 0.3 > } }
- #declare Tex_609 = texture { pigment { color rgb < 1.0, 0.8, 0.2 > } }
- #declare Tex_610 = texture { pigment { color rgb < 1.0, 0.9, 0.1 > } }
- #declare Tex_611 = texture { pigment { color rgb < 1.0, 1.0, 0.0 > } }
-
- // Cyan to purple.
- #declare Tex_701 = texture { pigment { color rgb < 0.0, 1.0, 1.0 > } }
- #declare Tex_702 = texture { pigment { color rgb < 0.1, 0.9, 1.0 > } }
- #declare Tex_703 = texture { pigment { color rgb < 0.2, 0.8, 1.0 > } }
- #declare Tex_704 = texture { pigment { color rgb < 0.3, 0.7, 1.0 > } }
- #declare Tex_705 = texture { pigment { color rgb < 0.4, 0.6, 1.0 > } }
- #declare Tex_706 = texture { pigment { color rgb < 0.5, 0.5, 1.0 > } }
- #declare Tex_707 = texture { pigment { color rgb < 0.6, 0.4, 1.0 > } }
- #declare Tex_708 = texture { pigment { color rgb < 0.7, 0.3, 1.0 > } }
- #declare Tex_709 = texture { pigment { color rgb < 0.8, 0.2, 1.0 > } }
- #declare Tex_710 = texture { pigment { color rgb < 0.9, 0.1, 1.0 > } }
- #declare Tex_711 = texture { pigment { color rgb < 1.0, 0.0, 1.0 > } }
-
- //------------------------------------------------------------------->
- //
- // Build the wall block.
-
- #declare Count_Temp = 0
-
- #declare Wall_Tile = mesh {
-
- // Two big triangles for back wall.
- triangle { <0,0,12><12,0,12><12,12,12> texture{Tex_A} }
- triangle { <0,0,12><0,12,12><12,12,12> texture{Tex_A} }
-
- // Two big triangles for left side wall.
- triangle { <0,0,0><0,0,12><0,12,12> texture{Tex_A} }
- triangle { <0,0,0><0,12,0><0,12,12> texture{Tex_A} }
-
- // Two big triangles for bottom wall.
- triangle { <0,0,0><12,0,0><12,0,12> texture{Tex_A} }
- triangle { <0,0,0><0,0,12><12,0,12> texture{Tex_A} }
-
- // Two big triangles for right side wall.
- triangle { <12,0,0><12,0,12><12,12,12> texture{Tex_A} }
- triangle { <12,0,0><12,12,0><12,12,12> texture{Tex_A} }
-
- // Two big triangles for top wall.
- triangle { <0,12,0><12,12,0><12,12,12> texture{Tex_A} }
- triangle { <0,12,0><0,12,12><12,12,12> texture{Tex_A} }
-
- #declare Count_Temp = Count_Temp + 10
-
- // Now start the angled "fins".
-
- #declare FIN = 0.4
-
- // Left.
- #declare A = 1 #while ( A <= 11 )
-
- #if(A= 1) triangle{<0,A,0><0,A+FIN,12><6+3,A,12>texture{Tex_001}} #end
- #if(A= 2) triangle{<0,A,0><0,A+FIN,12><6+3,A,12>texture{Tex_002}} #end
- #if(A= 3) triangle{<0,A,0><0,A+FIN,12><6+3,A,12>texture{Tex_003}} #end
- #if(A= 4) triangle{<0,A,0><0,A+FIN,12><6+3,A,12>texture{Tex_004}} #end
- #if(A= 5) triangle{<0,A,0><0,A+FIN,12><6+3,A,12>texture{Tex_005}} #end
- #if(A= 6) triangle{<0,A,0><0,A+FIN,12><6+3,A,12>texture{Tex_006}} #end
- #if(A= 7) triangle{<0,A,0><0,A+FIN,12><6+3,A,12>texture{Tex_007}} #end
- #if(A= 8) triangle{<0,A,0><0,A+FIN,12><6+3,A,12>texture{Tex_008}} #end
- #if(A= 9) triangle{<0,A,0><0,A+FIN,12><6+3,A,12>texture{Tex_009}} #end
- #if(A=10) triangle{<0,A,0><0,A+FIN,12><6+3,A,12>texture{Tex_010}} #end
- #if(A=11) triangle{<0,A,0><0,A+FIN,12><6+3,A,12>texture{Tex_011}} #end
-
- #if(A= 1) triangle{<0,A,0><0,A-FIN,12><6+3,A,12>texture{Tex_101}} #end
- #if(A= 2) triangle{<0,A,0><0,A-FIN,12><6+3,A,12>texture{Tex_102}} #end
- #if(A= 3) triangle{<0,A,0><0,A-FIN,12><6+3,A,12>texture{Tex_103}} #end
- #if(A= 4) triangle{<0,A,0><0,A-FIN,12><6+3,A,12>texture{Tex_104}} #end
- #if(A= 5) triangle{<0,A,0><0,A-FIN,12><6+3,A,12>texture{Tex_105}} #end
- #if(A= 6) triangle{<0,A,0><0,A-FIN,12><6+3,A,12>texture{Tex_106}} #end
- #if(A= 7) triangle{<0,A,0><0,A-FIN,12><6+3,A,12>texture{Tex_107}} #end
- #if(A= 8) triangle{<0,A,0><0,A-FIN,12><6+3,A,12>texture{Tex_108}} #end
- #if(A= 9) triangle{<0,A,0><0,A-FIN,12><6+3,A,12>texture{Tex_109}} #end
- #if(A=10) triangle{<0,A,0><0,A-FIN,12><6+3,A,12>texture{Tex_110}} #end
- #if(A=11) triangle{<0,A,0><0,A-FIN,12><6+3,A,12>texture{Tex_111}} #end
-
- #declare Count_Temp = Count_Temp + 2
- #declare A = A + 1 #end
-
- // Bottom.
- #declare A = 1 #while ( A <= 11 )
-
- #if(A= 1) triangle{<A,0,0><A-FIN,0,12><A,6+3,12>texture{Tex_201}} #end
- #if(A= 2) triangle{<A,0,0><A-FIN,0,12><A,6+3,12>texture{Tex_202}} #end
- #if(A= 3) triangle{<A,0,0><A-FIN,0,12><A,6+3,12>texture{Tex_203}} #end
- #if(A= 4) triangle{<A,0,0><A-FIN,0,12><A,6+3,12>texture{Tex_204}} #end
- #if(A= 5) triangle{<A,0,0><A-FIN,0,12><A,6+3,12>texture{Tex_205}} #end
- #if(A= 6) triangle{<A,0,0><A-FIN,0,12><A,6+3,12>texture{Tex_206}} #end
- #if(A= 7) triangle{<A,0,0><A-FIN,0,12><A,6+3,12>texture{Tex_207}} #end
- #if(A= 8) triangle{<A,0,0><A-FIN,0,12><A,6+3,12>texture{Tex_208}} #end
- #if(A= 9) triangle{<A,0,0><A-FIN,0,12><A,6+3,12>texture{Tex_209}} #end
- #if(A=10) triangle{<A,0,0><A-FIN,0,12><A,6+3,12>texture{Tex_210}} #end
- #if(A=11) triangle{<A,0,0><A-FIN,0,12><A,6+3,12>texture{Tex_211}} #end
-
-
- #if(A= 1) triangle{<A,0,0><A+FIN,0,12><A,6+3,12>texture{Tex_301}} #end
- #if(A= 2) triangle{<A,0,0><A+FIN,0,12><A,6+3,12>texture{Tex_302}} #end
- #if(A= 3) triangle{<A,0,0><A+FIN,0,12><A,6+3,12>texture{Tex_303}} #end
- #if(A= 4) triangle{<A,0,0><A+FIN,0,12><A,6+3,12>texture{Tex_304}} #end
- #if(A= 5) triangle{<A,0,0><A+FIN,0,12><A,6+3,12>texture{Tex_305}} #end
- #if(A= 6) triangle{<A,0,0><A+FIN,0,12><A,6+3,12>texture{Tex_306}} #end
- #if(A= 7) triangle{<A,0,0><A+FIN,0,12><A,6+3,12>texture{Tex_307}} #end
- #if(A= 8) triangle{<A,0,0><A+FIN,0,12><A,6+3,12>texture{Tex_308}} #end
- #if(A= 9) triangle{<A,0,0><A+FIN,0,12><A,6+3,12>texture{Tex_309}} #end
- #if(A=10) triangle{<A,0,0><A+FIN,0,12><A,6+3,12>texture{Tex_310}} #end
- #if(A=11) triangle{<A,0,0><A+FIN,0,12><A,6+3,12>texture{Tex_311}} #end
-
- #declare Count_Temp = Count_Temp + 2
- #declare A = A + 1 #end
-
- // Right.
- #declare A = 1 #while ( A <= 11 )
-
- #if(A= 1) triangle{<12,A,0><12,A-FIN,12><6-3,A,12>texture{Tex_401}} #end
- #if(A= 2) triangle{<12,A,0><12,A-FIN,12><6-3,A,12>texture{Tex_402}} #end
- #if(A= 3) triangle{<12,A,0><12,A-FIN,12><6-3,A,12>texture{Tex_403}} #end
- #if(A= 4) triangle{<12,A,0><12,A-FIN,12><6-3,A,12>texture{Tex_404}} #end
- #if(A= 5) triangle{<12,A,0><12,A-FIN,12><6-3,A,12>texture{Tex_405}} #end
- #if(A= 6) triangle{<12,A,0><12,A-FIN,12><6-3,A,12>texture{Tex_406}} #end
- #if(A= 7) triangle{<12,A,0><12,A-FIN,12><6-3,A,12>texture{Tex_407}} #end
- #if(A= 8) triangle{<12,A,0><12,A-FIN,12><6-3,A,12>texture{Tex_408}} #end
- #if(A= 9) triangle{<12,A,0><12,A-FIN,12><6-3,A,12>texture{Tex_409}} #end
- #if(A=10) triangle{<12,A,0><12,A-FIN,12><6-3,A,12>texture{Tex_410}} #end
- #if(A=11) triangle{<12,A,0><12,A-FIN,12><6-3,A,12>texture{Tex_411}} #end
-
- #if(A= 1) triangle{<12,A,0><12,A+FIN,12><6-3,A,12>texture{Tex_501}} #end
- #if(A= 2) triangle{<12,A,0><12,A+FIN,12><6-3,A,12>texture{Tex_502}} #end
- #if(A= 3) triangle{<12,A,0><12,A+FIN,12><6-3,A,12>texture{Tex_503}} #end
- #if(A= 4) triangle{<12,A,0><12,A+FIN,12><6-3,A,12>texture{Tex_504}} #end
- #if(A= 5) triangle{<12,A,0><12,A+FIN,12><6-3,A,12>texture{Tex_505}} #end
- #if(A= 6) triangle{<12,A,0><12,A+FIN,12><6-3,A,12>texture{Tex_506}} #end
- #if(A= 7) triangle{<12,A,0><12,A+FIN,12><6-3,A,12>texture{Tex_507}} #end
- #if(A= 8) triangle{<12,A,0><12,A+FIN,12><6-3,A,12>texture{Tex_508}} #end
- #if(A= 9) triangle{<12,A,0><12,A+FIN,12><6-3,A,12>texture{Tex_509}} #end
- #if(A=10) triangle{<12,A,0><12,A+FIN,12><6-3,A,12>texture{Tex_510}} #end
- #if(A=11) triangle{<12,A,0><12,A+FIN,12><6-3,A,12>texture{Tex_511}} #end
-
- #declare Count_Temp = Count_Temp + 2
- #declare A = A + 1 #end
-
- // Top.
- #declare A = 1 #while ( A <= 11 )
-
- #if(A= 1) triangle{<A,12,0><A+FIN,12,12><A,6-3,12>texture{Tex_601}} #end
- #if(A= 2) triangle{<A,12,0><A+FIN,12,12><A,6-3,12>texture{Tex_602}} #end
- #if(A= 3) triangle{<A,12,0><A+FIN,12,12><A,6-3,12>texture{Tex_603}} #end
- #if(A= 4) triangle{<A,12,0><A+FIN,12,12><A,6-3,12>texture{Tex_604}} #end
- #if(A= 5) triangle{<A,12,0><A+FIN,12,12><A,6-3,12>texture{Tex_605}} #end
- #if(A= 6) triangle{<A,12,0><A+FIN,12,12><A,6-3,12>texture{Tex_606}} #end
- #if(A= 7) triangle{<A,12,0><A+FIN,12,12><A,6-3,12>texture{Tex_607}} #end
- #if(A= 8) triangle{<A,12,0><A+FIN,12,12><A,6-3,12>texture{Tex_608}} #end
- #if(A= 9) triangle{<A,12,0><A+FIN,12,12><A,6-3,12>texture{Tex_609}} #end
- #if(A=10) triangle{<A,12,0><A+FIN,12,12><A,6-3,12>texture{Tex_610}} #end
- #if(A=11) triangle{<A,12,0><A+FIN,12,12><A,6-3,12>texture{Tex_611}} #end
-
- #if(A= 1) triangle{<A,12,0><A-FIN,12,12><A,6-3,12>texture{Tex_701}} #end
- #if(A= 2) triangle{<A,12,0><A-FIN,12,12><A,6-3,12>texture{Tex_702}} #end
- #if(A= 3) triangle{<A,12,0><A-FIN,12,12><A,6-3,12>texture{Tex_703}} #end
- #if(A= 4) triangle{<A,12,0><A-FIN,12,12><A,6-3,12>texture{Tex_704}} #end
- #if(A= 5) triangle{<A,12,0><A-FIN,12,12><A,6-3,12>texture{Tex_705}} #end
- #if(A= 6) triangle{<A,12,0><A-FIN,12,12><A,6-3,12>texture{Tex_706}} #end
- #if(A= 7) triangle{<A,12,0><A-FIN,12,12><A,6-3,12>texture{Tex_707}} #end
- #if(A= 8) triangle{<A,12,0><A-FIN,12,12><A,6-3,12>texture{Tex_708}} #end
- #if(A= 9) triangle{<A,12,0><A-FIN,12,12><A,6-3,12>texture{Tex_709}} #end
- #if(A=10) triangle{<A,12,0><A-FIN,12,12><A,6-3,12>texture{Tex_710}} #end
- #if(A=11) triangle{<A,12,0><A-FIN,12,12><A,6-3,12>texture{Tex_711}} #end
-
- #declare Count_Temp = Count_Temp + 2
- #declare A = A + 1 #end
-
- // Border pieces on all four front edges (they overlap each other...
- // ...but so what!).
-
- #declare TEMP = 0.5
-
- // Top.
- triangle { <0,12,0><12,12,0><6,12+TEMP,0> texture{Tex_B} }
- triangle { <0,12,0><12,12,0><6,12-TEMP,0> texture{Tex_B} }
-
- // Right.
- triangle { <12,0,0><12,12,0><12+TEMP,6,0> texture{Tex_B} }
- triangle { <12,0,0><12,12,0><12-TEMP,6,0> texture{Tex_B} }
-
- // Bottom.
- triangle { <0,0,0><12,0,0><6,0+TEMP,0> texture{Tex_B} }
- triangle { <0,0,0><12,0,0><6,0-TEMP,0> texture{Tex_B} }
-
- // Left.
- triangle { <0,0,0><0,12,0><0+TEMP,6,0> texture{Tex_B} }
- triangle { <0,0,0><0,12,0><0-TEMP,6,0> texture{Tex_B} }
-
- #declare Count_Temp = Count_Temp + 8
-
- } // End of mesh.
-
- //------------------------------------------------------------------->
- //
- // End of this file.
-
-